home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
DESKTOP
/
SAVEDESK.SPK
/
!SaveDesk
/
!Help
next >
Wrap
Text File
|
1994-09-13
|
7KB
|
169 lines
Forward>>Motion
SaveDesk
For Risc OS 3
Version 1.00
© Nick Jarman Tue,23 Aug 1994
*****************************************************************************
**** SaveDesk needs to be set up manually before it will do anything ****
**** this doesn't take very long! ****
*****************************************************************************
About the program
-----------------
A quick implementation of an idea I had this afternoon: The Pinboard
application is always running on my computer to display a marble effect
backdrop. This is rather a waste of 64K of memory if that's the only thing
I'm using it for.
The ability to drag files and directories onto the desktop is useful, but I
usually want them to stay there after the computer has been turned off or
reset. It's a drag to have to save the pinboard manually, and I can guarantee
I'll forget to do it before hitting Ctrl-Shift-F12! Anyway, I'd like it to
save the directory viewers I have open as well. Pinboard can't do this.
What I'm describing is similar to the behaviour of the Apple Macintosh
desktop. It will start up in much the same state as it was in when it was
last shut down. This is very useful if you've plastered your desktop with
useful directories and applictions.
SaveDesk pulls together Pinboard and your boot sequence to provide this
functionality. It takes a bit of care to set up, but once it's working it
should integrate seemlessly with your desktop environment!
How to use it
-------------
If you have a Risc PC, or Risc OS 3.50 on any other computer (?!?) read on.
If you don't, read the 'Pre-Risc OS 3.50 users' section.
Risc OS 3.50 comes with a standard !Boot application which is easy to
customise without changing it out of all recognition. This makes it a lot
easier to describe how to set up SaveDesk...
- Copy the SaveDesk module into !Boot.Resources
- Use Edit (or your preferred text editor) to create an Obey file containing
the following:
Set SaveDesk$Name <Choices$Write>.Boot.Tasks.SaveDesk
Run Boot:Resources.SaveDesk
- Call this file SaveDesk, and save it in the !Boot.Choices.Boot.PreDesk
directory
- Set the type of SaveDesk to Obey
Now shut your computer down and restart it. SaveDesk will appear on the Task
display in the Module tasks section. To test it, open a few directories and
drag some icons onto the desktop. Shut the computer down and restart it.
When the boot sequence has finished, the icons and filer windows will be on
your desktop in the same position as they were when you shut it down.
Pre-Risc OS 3.50 users
----------------------
This is slightly more difficult to explain than for Risc OS 3.50 since there
is no standard !Boot directory structure. You are left to define your own, so
it can be as complex or as simple as you like. This section is therefore
based on the structure explained in section 7 of the Risc OS 3 User Guide -
'Desktop boot files'. If you are not familiar with desktop boot files, read
section 7 of the User Guide now.
- Copy the SaveDesk module into whichever directory you like on your hard
disc. Maybe a utilities directory, but definitly somewhere out of the way
which will not be accidentally renamed or deleted. This may also be the
directory where you want SaveDesk to put its configuration file (see
below)
- Identify your desktop boot file and load it into Edit (or your preferred
text editor).
- Add the following three lines at the end of the file:
Set SaveDesk$Name <Your_Choice>
Run <Full_pathname_of_SaveDesk>
Run <Your_Choice>
Replace <Your_Choice> with the full pathname of SaveDesk's configuration
file. This is the file to which it saves information about your desktop
when you shut it down.
Replace <Full_pathname_of_SaveDesk> with the full pathname of SaveDesk!
To clarify this, here's an example. Assume your hard disc is called
HardDisc4, and you put SaveDesk in a directory called Utils.Startup. You
would add these lines to your desktop boot file:
Set SaveDesk$Name adfs::HardDisc4.$.Utils.Startup.DeskState
Run adfs::HardDisc4.$.Utils.Startup.SaveDesk
Run adfs::HardDisc4.$.Utils.Startup.DeskState
Now shut your computer down and restart it. Don't use the Restart button
which is displayed after you press Ctrl-Shift-F12, because it doesn't work
properly on some machines. Press Ctrl-Reset instead. When your computer
restarts an error message will be displayed. For the example above it would
be:
File 'adfs::HardDisc4.$.Utils.Startup.DeskState' not found
don't worry about this; it will not occur again. Just click on Cancel, and
the desktop will be displayed. SaveDesk will appear on the Task display in
the Module tasks section. To test it, open a few directories and drag some
icons onto the desktop. Shut the computer down and restart it. When the boot
sequence has finished, the icons and filer windows will be on your desktop
in the same position as they were when you shut it down.
History
-------
V0.01 (Tue,23 Aug 1994)
Prototype - written in Basic to see if the idea would work. It did.
V1.00 (Tue,23 Aug 1994)
It may as well be done properly... this calls for a relocatable module
written in assmebly language. It takes a lot less memory: The smallest
Wimpslot a Basic program can have ranges from 8K-32K. The module takes
just less than 2K, including workspace.
Testing
-------
SaveDesk has been tested with the following machine/operating system
combinations:
Machine OS
A400/1 Risc Os 3.10
Risc PC Risc OS 3.50
Further development
-------------------
It's so simple, what is there to add?
SaveDesk is distributed under the Acorn User PD Scheme
------------------------------------------------------
The application may not be copied or distributed to any third party until
three months after publication of this issue of Acorn User, i.e. until
6th January 1995. After that rights to the program revert to the author,
and the program may be distributed subject to the following conditions:
This application may be feely distributed as long as it is not altered in any
way, and no profit is made doing so. If you use SaveDesk, you do so entirely
at your own risk.
If you intend to distribute SaveDesk through a public domain software
library, please obtain my permission first. This way I can ensure you have
the latest version of the software, and that you are kept up to date
regarding any significant changes.
The Author
----------
Comments and suggestions are welcome. Send them to this address:
Nick Jarman
7 Cadet Way
Church Crookham
FLEET
Hants
GU13 0UG
UK